package com.sharemarking.wa.platform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sharemarking.wa.common.entity.Address;
import com.sharemarking.wa.common.entity.Version;
import com.sharemarking.wa.platform.dto.VersionDto;
import com.sharemarking.wa.platform.dto.address.AddressListDto;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author dxy
 */
@Repository
public interface VersionMapper extends BaseMapper<Version> {

    @Select("SELECT * FROM sys_version WHERE end = #{type} ORDER BY id DESC")
    VersionDto getVersion(Integer type);
}
